#ifndef ITEMWIDGET_H
#define ITEMWIDGET_H

#include <QMainWindow>
#include <QString>

class QLabel;
class QLineEdit;
class QComboBox;

class ItemWidget : public QMainWindow
{
    Q_OBJECT
public:
    ItemWidget(const int num , const QString& strLabelNameText,const int value,const int selection = 0);
    virtual ~ItemWidget();
    void customUI();
    void setItemText(const QString&);
    QString getItemText() const;
protected:
    bool eventFilter(QObject* watched, QEvent* event);

signals:
    void cellchanged(int,quint64);
private slots:
    void indexchangedHandler(int);
    void valuechangedHandler(const QString&);
private:
    QLabel* labText;
    QLineEdit* leVal;
    QComboBox* cbSelection;

    QString strLableNameText;
    int value;
    int selection;
    int Num;
};

#endif // ITEMWIDGET_H
